finding the perimeter of a rectangle